using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Distance
{
    /// <summary>
    /// <para>Corridor</para>
    /// <para>Calculates the sum of accumulative costs for two input accumulative cost rasters.</para>
    /// <para>计算两个输入累积成本栅格的累计成本之和。</para>
    /// </summary>    
    [DisplayName("Corridor")]
    public class Corridor : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Corridor()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_distance_raster1">
        /// <para>Input cost distance raster 1</para>
        /// <para><xdoc>
        ///   <para>The first input distance raster.</para>
        ///   <para>It should be an accumulated cost distance output from a distance tool such as Cost Distance or Path Distance.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第一个输入距离栅格。</para>
        ///   <para>它应是从距离工具（例如成本距离或路径距离）输出的累计成本距离。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_in_distance_raster2">
        /// <para>Input cost distance raster 2</para>
        /// <para><xdoc>
        ///   <para>The second input distance raster.</para>
        ///   <para>It should be an accumulated cost distance output from a distance tool such as Cost Distance or Path Distance.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第二个输入距离栅格。</para>
        ///   <para>它应是从距离工具（例如成本距离或路径距离）输出的累计成本距离。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output corridor raster.</para>
        ///   <para>The output raster is of floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出道路栅格。</para>
        ///   <para>输出栅格为浮点类型。</para>
        /// </xdoc></para>
        /// </param>
        public Corridor(object _in_distance_raster1, object _in_distance_raster2, object _out_raster)
        {
            this._in_distance_raster1 = _in_distance_raster1;
            this._in_distance_raster2 = _in_distance_raster2;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Corridor";

        public override string CallName => "sa.Corridor";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_distance_raster1, _in_distance_raster2, _out_raster];

        /// <summary>
        /// <para>Input cost distance raster 1</para>
        /// <para><xdoc>
        ///   <para>The first input distance raster.</para>
        ///   <para>It should be an accumulated cost distance output from a distance tool such as Cost Distance or Path Distance.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第一个输入距离栅格。</para>
        ///   <para>它应是从距离工具（例如成本距离或路径距离）输出的累计成本距离。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input cost distance raster 1")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_distance_raster1 { get; set; }


        /// <summary>
        /// <para>Input cost distance raster 2</para>
        /// <para><xdoc>
        ///   <para>The second input distance raster.</para>
        ///   <para>It should be an accumulated cost distance output from a distance tool such as Cost Distance or Path Distance.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第二个输入距离栅格。</para>
        ///   <para>它应是从距离工具（例如成本距离或路径距离）输出的累计成本距离。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input cost distance raster 2")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_distance_raster2 { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output corridor raster.</para>
        ///   <para>The output raster is of floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出道路栅格。</para>
        ///   <para>输出栅格为浮点类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Corridor SetEnv(int? autoCommit = null, object cellSize = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}